local SuperRankHelper = {}
local RankDataConvertHelper = require("app.widget.rank.RankDataConvertHelper")

function SuperRankHelper.getBaseMenu()
    -- body
    -- isReq 表示是否请求过了  如果 请求过了 就不拉去子项了
    local menuData = {
        {name = L("rank_20001"), key = Enums.SuperRankMenu.CSArena, isReq = false},
        {name = L("rank_20002"), key = Enums.SuperRankMenu.CSDuel, isReq = false},
        {name = L("WGWOnlineRemind_1"), key = Enums.SuperRankMenu.CSGuildWar, isReq = false},
    }
    return menuData
end


function SuperRankHelper.getEmptyData(tp)
    -- body
    local convertType = 1
    if tp == Enums.SuperRankMenu.CSArena then
        convertType =  RankDataConvertHelper.DataType.CSArena
    elseif tp == Enums.SuperRankMenu.CSDuel then
        convertType =  RankDataConvertHelper.DataType.CSDuel
    elseif  tp == Enums.SuperRankMenu.CSGuildWar then
        convertType =  RankDataConvertHelper.DataType.CSGuildWar
    end
    local datas = {
        pageNum = 0,
        avatarPageNum = 0,
        avatars = {},
        bottomInfo = RankDataConvertHelper.convertToBottomInfo(nil, 0, nil),
        rankData = RankDataConvertHelper.ConvertToData(convertType, {}, {startRank = 0, startPage = 0})
    }
    return datas
end



return SuperRankHelper